<template>
  <div id="app">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="资产分类">
        <el-select
          v-model="formInline.selDept"
          id="selPackageType"
          name="assets.packageType"
          placeholder="资产分类"
        >
        </el-select>
        <el-select
          v-model="formInline.selDept"
          id="selPackageType"
          name="assets.packageType"
          placeholder="资产分类"
        >
        </el-select>
      </el-form-item>
      <el-form-item label="资产名称：">
        <el-input
          v-model="formInline.tbxAssetsName"
          placeholder="资产名称："
        ></el-input>
      </el-form-item>
      <el-form-item label="资产编号：">
        <el-input
          v-model="formInline.tbxAssetsCode"
          placeholder="资产编号："
        ></el-input>
      </el-form-item>
      <el-form-item label="供货商信息：">
        <el-input
          v-model="formInline.tbxSupplier"
          placeholder="供货商信息："
        ></el-input>
      </el-form-item>
      <el-form-item label="耗材：">
        <el-switch
          v-model="value"
          active-color="#13ce66"
          inactive-color="#ff4949"
        >
        </el-switch>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">检索按钮</el-button>
      </el-form-item>
      <br />
      <el-button type="button" id="btnAddAssets" class="btn-success">
        <span class="glyphicon glyphicon-plus"> 新增资产 Add</span>
      </el-button>
      <el-button type="button" id="btnAssetsInstock" class="btn-success">
        <span class="glyphicon glyphicon-plus"> 资产入库 Instock</span>
      </el-button>
      <el-button type="btnEdit" id="btnAdd" class="btn-success">
        <span class="glyphicon glyphicon-plus"> 编辑资产 Edit</span>
      </el-button>
    </el-form>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="assetsCode" label="资产编号"> </el-table-column>
      <el-table-column prop="nameCn" label="资产名 称"> </el-table-column>
      <el-table-column prop="id" label="品 牌"> </el-table-column>
      <el-table-column prop="null" label="型 号 "> </el-table-column>
      <el-table-column prop="reportTo" label="供货商 "> </el-table-column>
      <el-table-column prop="null" label="库存记录"> </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  // name: 'zhiyuan',
  data() {
    return {
      value: true,
      formInline: {
        selDept: "",
        tbxNamecn: "",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
  // Users[],
  user: {
    URL: "http://121.37.241.58:8883/logic/assets/normal/list",
  },
};
</script>